<?php
class DigUi_View_Helper_DigUiSelectSkin extends Zend_View_Helper_Abstract 
{
    /**
     */
    public function digUiSelectSkin($name, $value, $attribs = array())
    {
        $templates = DigUi_Service_Template::listTemplates();
        $options = array();
        $options[] = 'Default Skin';
        foreach ($templates as $template) {
            $skins = DigUi_Service_Template::listSkins($template);
            foreach ($skins as $skin) {
                $options[$template . '->' . $skin] = $template . ' / ' . $skin;
            }
        }
        return $this->view->formSelect($name, $value, $attribs, $options);
    }
}
?>